/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package xmarti.vacaxm.beans.maintenance;

import java.util.Objects;

/**
 *
 * @author xmarti
 */
public class Breed {
    private int id;
    private String name;
    private String description;
    public Breed (){
        this.name="-";
    }
    public Breed(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 11 * hash + this.id;
        hash = 11 * hash + Objects.hashCode(getClass().toString());
        
        return hash;
    }

   

   

    

    
    
    public boolean equals(Breed obj) {
        if (obj instanceof Breed) {                       
            final Breed other = (Breed) obj;
            if (!Objects.equals(this.name, other.name)) {
                return false;
            }
            return true;
        }
        return false; 
    }
    @Override
    public String toString(){
        return this.name; 
    }
    
}
